package com.nancy.ioc;

/**
 * @Author: cc.zong
 * @Description:
 * @Date: created in 下午1:14 2019/1/11
 */
public class Bean {

    public Bean(){

    }

    public Bean(String name){
        System.out.println("Bean构造函数被调用啦 name =" + name);
        this.name = name ;
    }

    private String name ;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Bean{" +
                "name='" + name + '\'' +
                '}';
    }
}
